<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>快速上手 | Flutter Create Framework</title>
    <meta name="generator" content="VuePress 1.5.3">
    
    <meta name="description" content="Flutter Create Framework Doc">
    <meta name="theme-color" content="#3eaf7c">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="preload" href="/flutter-create-framework/assets/css/0.styles.8fb68239.css" as="style"><link rel="preload" href="/flutter-create-framework/assets/js/app.ae50095e.js" as="script"><link rel="preload" href="/flutter-create-framework/assets/js/2.c234afe8.js" as="script"><link rel="preload" href="/flutter-create-framework/assets/js/11.a8df6a1c.js" as="script"><link rel="prefetch" href="/flutter-create-framework/assets/js/10.bbfbb934.js"><link rel="prefetch" href="/flutter-create-framework/assets/js/12.096d2e28.js"><link rel="prefetch" href="/flutter-create-framework/assets/js/3.8c79cdc2.js"><link rel="prefetch" href="/flutter-create-framework/assets/js/4.e40c4903.js"><link rel="prefetch" href="/flutter-create-framework/assets/js/5.003cba5c.js"><link rel="prefetch" href="/flutter-create-framework/assets/js/6.1ad019e8.js"><link rel="prefetch" href="/flutter-create-framework/assets/js/7.f0229196.js"><link rel="prefetch" href="/flutter-create-framework/assets/js/8.ccad4817.js"><link rel="prefetch" href="/flutter-create-framework/assets/js/9.4a4c6a06.js">
    <link rel="stylesheet" href="/flutter-create-framework/assets/css/0.styles.8fb68239.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/flutter-create-framework/" class="home-link router-link-active"><!----> <span class="site-name">Flutter Create Framework</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="代码仓库" class="dropdown-title"><span class="title">代码仓库</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://github.com/1467602180/flutter-create-framework" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Github(国外)
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://gitee.com/hfybbs/flutter-create-framework?_from=gitee_search" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Gitee(国内)
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="代码仓库" class="dropdown-title"><span class="title">代码仓库</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://github.com/1467602180/flutter-create-framework" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Github(国外)
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li><li class="dropdown-item"><!----> <a href="https://gitee.com/hfybbs/flutter-create-framework?_from=gitee_search" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Gitee(国内)
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div> <!----></nav>  <ul class="sidebar-links"><li><a href="/flutter-create-framework/guide/" aria-current="page" class="active sidebar-link">快速上手</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/flutter-create-framework/guide/#环境准备" class="sidebar-link">环境准备</a></li><li class="sidebar-sub-header"><a href="/flutter-create-framework/guide/#拉取简单template" class="sidebar-link">拉取简单Template</a></li><li class="sidebar-sub-header"><a href="/flutter-create-framework/guide/#拉取完整template" class="sidebar-link">拉取完整Template</a></li><li class="sidebar-sub-header"><a href="/flutter-create-framework/guide/#下载pub包" class="sidebar-link">下载pub包</a></li><li class="sidebar-sub-header"><a href="/flutter-create-framework/guide/#运行" class="sidebar-link">运行</a></li></ul></li><li><a href="/flutter-create-framework/guide/directory.html" class="sidebar-link">目录结构</a></li><li><a href="/flutter-create-framework/guide/utils.html" class="sidebar-link">功能模块</a></li><li><a href="/flutter-create-framework/guide/about.html" class="sidebar-link">关于</a></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="快速上手"><a href="#快速上手" class="header-anchor">#</a> 快速上手</h1> <h2 id="环境准备"><a href="#环境准备" class="header-anchor">#</a> 环境准备</h2> <ul><li>确保你的开发设备安装好了FLutter的开发环境，若没有，你应该查看<a href="https://flutter.cn/docs/get-started/install" target="_blank" rel="noopener noreferrer">Flutter安装<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li> <li>Git环境，若没有，你应该查看<a href="https://www.runoob.com/git/git-tutorial.html" target="_blank" rel="noopener noreferrer">Git教程<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul> <p>你可以选择用简单的Template直接上手开发或者查看完整Template进行学习。</p> <h2 id="拉取简单template"><a href="#拉取简单template" class="header-anchor">#</a> 拉取简单Template</h2> <p>访问<a href="https://github.com/1467602180/flutter-create-framework-template" target="_blank" rel="noopener noreferrer">github模板仓库<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>或<a href="https://gitee.com/hfybbs/flutter-create-framework-template" target="_blank" rel="noopener noreferrer">gitee模板仓库<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p> <p>点击使用该模板，创建你的代码仓库，然后clone下来进行开发</p> <p><img src="README.assets/image-20201026133753345.png" alt="image-20201026133753345"></p> <h2 id="拉取完整template"><a href="#拉取完整template" class="header-anchor">#</a> 拉取完整Template</h2> <p>打开终端，执行代码，将框架代码拉取至你的电脑上</p> <div class="language-shell extra-class"><pre class="language-shell"><code><span class="token comment"># Github(国外仓库)</span>
<span class="token function">git</span> clone https://github.com/1467602180/flutter-create-framework.git
<span class="token comment"># Gitee(国内仓库)</span>
<span class="token function">git</span> clone https://gitee.com/hfybbs/flutter-create-framework.git
</code></pre></div><h2 id="下载pub包"><a href="#下载pub包" class="header-anchor">#</a> 下载pub包</h2> <p>拉取完框架代码后，进入项目目录，执行命令</p> <div class="language-shell extra-class"><pre class="language-shell"><code>flutter pub get
</code></pre></div><h2 id="运行"><a href="#运行" class="header-anchor">#</a> 运行</h2> <p>下载完pub包后，直接运行即可查看示例</p> <div class="language-shell extra-class"><pre class="language-shell"><code>flutter run
</code></pre></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><!----> <span class="next"><a href="/flutter-create-framework/guide/directory.html">
        目录结构
      </a>
      →
    </span></p></div> </main></div><div class="global-ui"><!----></div></div>
    <script src="/flutter-create-framework/assets/js/app.ae50095e.js" defer></script><script src="/flutter-create-framework/assets/js/2.c234afe8.js" defer></script><script src="/flutter-create-framework/assets/js/11.a8df6a1c.js" defer></script>
  </body>
</html>
